﻿@{
    ViewBag.Title = "UpdataBook";
}
<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    th {
        width: 180px;
    }
</style>
<form action="../Books/UpdataBook" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="2">
                <h2 class="aa">修改图书信息</h2>
            </th>
        </tr>
        <tr>
            <input type="hidden" name="BookId" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookId 
        }"/>
            <th>书名:</th>
            <th>
                <input type="text" name="BookName" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookName 
        }" disabled="disabled"/></th>
        </tr>
        <tr>
            <th>作者:</th>
            <th>
                <input type="text" name="BookAuthor" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookAuthor
        }" disabled="disabled"/></th>
        </tr>
        <tr>
            <th>出版社:</th>
            <th>
                <input type="text" name="BookPress" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookPress 
        }" disabled="disabled"/></th>
        </tr>
        <tr>
            <th>出版日期:</th>
            <th>
                <input type="text" name="BookTime" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookTime 
        }" disabled="disabled"/></th>
        </tr>
        <tr>
            <th>图书定价:</th>
            <th>
                <input type="text" name="BookPrice" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookPrice 
        }"/></th>
        </tr>
        <tr>
            <th>图书状态:</th>
            <th>
                @foreach (var item in ViewBag.tt)
                {
                    if (@item.BookState == 1)
                    {
                    <p>
                        <input type="radio" checked="checked" value="1" name="BookState" />上架
                    <input type="radio" value="2" name="BookState" />下架
                    </p> 
                    }
                    else
                    {
                    <p>
                        <input type="radio" value="1" name="BookState" />上架
                    <input type="radio" value="2" name="BookState" checked="checked" />下架
                    </p> 
                    }
                }
            </th>
        </tr>
        <tr>
            <th>图书简介:</th>
            <th>
                <textarea rows="10" cols="20" name="Note">  @foreach (var item in ViewBag.tt)
                                                            {
		 @item.BookDescribe 
                                                            }</textarea>

            </th>
        </tr>
        <tr>
            <th>图书库存:
            </th>
            <th>
                <input  type="text" name="BookCount" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.BookCount 
        }" />
            </th>
        </tr>
        <tr>
            <th>
                <input type="submit" value="提交" /></th>
            <th>
                <input type="reset" value="重置" /></th>
        </tr>
    </table>
</form>



